<?php

namespace app\http\middleware;
use think\facade\Cache;
use app\common\model\Config as configModel;
use think\facade\Request;
class CheckApi
{
    public function handle($request, \Closure $next)
    {
        /*if (!session('userid') && !session('openid') && $request->controller() != 'Login' && $request->action() != 'goods_info') {
            return redirect('api/login/login');
        }*/
        session('userid',10);
        session('openid','oDX1UuG8kaalq5joEhyw60wZEEJQ');
        return $next($request);
    }
}